package com.rsk;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;

@EntityScan("com.rsk.entity")//用于扫描JPA实体类 @Entity
@EnableDubbo
@EnableTransactionManagement
@ServletComponentScan  //扫描servlet
@SpringBootApplication( exclude = {DataSourceAutoConfiguration.class,
		DataSourceTransactionManagerAutoConfiguration.class})
public class RskServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(RskServiceApplication.class, args);
    }
}
